<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页布局示例</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <div class="header-image" id="headerImage">
        <img src="2.jpeg" alt="示例图片" style="width: 100%; height: 400px;">
        <button id="closeButton" onclick="hideImage()">×</button>
    </div>
    <div class="container">
        <div class="navbar">
            <ul>
                <li><a href="#home">首页</a></li>
                <li><a href="#about">关于我们</a></li>
                <li><a href="#services">服务</a></li>
                <li><a href="#contact">联系我们</a></li>
            </ul>
        </div>
        <div class="content">
            <div class="carousel">
                <div class="carousel-inner">
                    <div class="carousel-item active">
                        <img src="https://via.placeholder.com/600x400?text=Slide+1" alt="Slide 1">
                    </div>
                    <div class="carousel-item">
                        <img src="https://via.placeholder.com/600x400?text=Slide+2" alt="Slide 2">
                    </div>
                    <div class="carousel-item">
                        <img src="https://via.placeholder.com/600x400?text=Slide+3" alt="Slide 3">
                    </div>
                </div>
                <button class="carousel-control-prev" onclick="prevSlide()">&#10094;</button>
                <button class="carousel-control-next" onclick="nextSlide()">&#10095;</button>
            </div>
            <div class="latest-news">
                最新热点
            </div>
        </div>
        <div class="main-content">
            主要内容区域
        </div>
        <div class="footer">
            底部信息
        </div>
    </div>
    <button id="backToTopBtn" title="回到顶部">↑</button>

    <script src="script.js"></script>
</body>
</html>